<template>
<div class="drawNotice">
  <p class="notice_tit">{{info.title}}</p>
  <div class="notice_cont" v-html="info.content"></div>
</div>
</template>


<script>
import global from '../../../utils/global'
import axios from 'axios'
import store from '../../../utils/store'
export default {
  name: 'drawNotice',
  data () {
    return {
      info: {},
    }
  },
  mounted(){
    this.getInfo();
    this.$root.washShare();
  },
  methods: {
    // 获取信息
    getInfo(){
      var that = this;
      axios.get(global.api.index.draw,{
        params: {
          uuid: localStorage.getItem('carWashUuid'),
        }
      })
      .then(function(res){
        console.log("getInfo then");
        console.log(res);
        if (res.data.code == 0) {
          that.info = res.data.data
        }
      })
      .catch(function(res){
        console.log("getInfo catch");
        console.log(res);
      }) 
    },
  }
}
</script>

<style scoped>
  
</style>
<style>
  ul,li,div,a,p,span{
    margin: 0;
    padding: 0;
  }
  li{
    list-style: none;
  }
  .flex{
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }
</style>
